package fr.jee.ejb.service;

import javax.batch.operations.JobOperator;
import javax.batch.runtime.BatchRuntime;
import javax.inject.Named;

@Named
public class JobService {

	public long executeJob() {
		JobOperator jobOperator = BatchRuntime.getJobOperator();
		return jobOperator.start("SimplePayrollJob", null);
	}

}
